import { RouteRecordRaw } from 'vue-router';

export const assessRouter: RouteRecordRaw = {
  path: '/assess',
  name: 'assess',
  component: () => import('@/layout/routerView/parent.vue'),
  redirect: '/assess/gdzlpg/dlts',
  meta: {
    title: '评估分析',
    isLink: '',
    isHide: false,
    isKeepAlive: true,
    isAffix: false,
    isIframe: false,
    roles: ['admin', 'common'],
    icon: 'iconfont icon-caidan',
  },
  children: [
    {
      path: '/assess/gdzlpg',
      name: 'assessGdzlpg',
      redirect: '/assess/gdzlpg/dlts',
      component: () => import('@/layout/routerView/parent.vue'),
      meta: {
        title: '耕地质量评估',
        isLink: '',
        isHide: false,
        isKeepAlive: true,
        isAffix: false,
        isIframe: false,
        roles: ['admin', 'common'],
        icon: 'iconfont icon-caidan',
      },
      children: [
        {
          path: '/assess/gdzlpg/dlts',
          name: 'assessGdzlpg',
          component: () => import('@/views/assess/gdzlpg/dlts/index.vue'),
          meta: {
            title: '地力提升评估',
            isLink: '',
            isHide: false,
            isKeepAlive: true,
            isAffix: false,
            isIframe: false,
            roles: ['admin', 'common'],
            icon: '',
          },
        },
      ],
    },
    {
      path: '/assess/gdzlzhpj',
      name: 'assessGdzlzhpj',
      component: () => import('@/views/assess/gdzlzhpj/index.vue'),
      meta: {
        title: '耕地质量综合评价',
        isLink: '',
        isHide: false,
        isKeepAlive: true,
        isAffix: false,
        isIframe: false,
        roles: ['admin', 'common'],
        icon: 'iconfont icon-caidan',
      },
    },
  ],
};
